import { ArticleActionType, ArticleItem } from '..'

const initValue: ArticleItem[] = []
export default function article (state = initValue, action: ArticleActionType): ArticleItem[] {
  console.log('article', action.initState)
  if (action.type === 'article/SET_ARTICLES') {
    return action.initState
  }
  return state
}
